package com.example.demo.serviceimpl;

import com.example.demo.dao.MessageMapper;
import com.example.demo.dao.UserMapper;
import com.example.demo.pojo.MessageEntity;
import com.example.demo.pojo.UserEntity;
import com.example.demo.service.AdmainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AdmainServiceImpl implements AdmainService {
    @Autowired
    MessageMapper message ;

    @Autowired
    UserMapper user ;
    /**
     *
     * 获取所有请求信息
     * @param
     * @return int
     */
    @Override
    public List<MessageEntity> getAllMessage() {

        List<MessageEntity> list= message.getAllMessage();
        return list;
    }
    /**
     *
     * 获取所有人信息
     * @param
     * @return int
     */
    @Override
    public  List<UserEntity> getAllUser(){

        List<UserEntity> list= user.getAllUser();
        return list;


    }










}
